package cn.chrilwe.pigpig.im.rabbit.factory.impl;
/**
 * 
 * @author chrilwe
 * 2020-8-16
 */

import java.io.IOException;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.concurrent.TimeoutException;

import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;

import cn.chrilwe.pigpig.im.rabbit.common.RabbitConfiguration;
import cn.chrilwe.pigpig.im.rabbit.factory.RabbitSession;
import cn.chrilwe.pigpig.im.rabbit.factory.RabbitSessionFactory;

public class RabbitSessionFactoryBean {
	
	private RabbitConfiguration config;
	
	public RabbitSessionFactoryBean(RabbitConfiguration config) {
		this.config = config;
	}

	public RabbitSessionFactory getFactory() {
		
		return new DefaultRabbitSessionFactory(config);
	}
	
}
